package com.study.controller;

import com.study.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description TODO
 * @Author v_yangliu
 * @Date 2022/1/12 14:07
 * @Version 1.0
 **/
@RestController
public class HelloController {
    @Autowired
    private HelloService helloService;

    @RequestMapping("/hello")
    public String hello(){
        String result=helloService.getHello();
        return result;
    }




}
